package com.zzyl.nursing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzyl.nursing.domain.FamilyMemberElder;
import com.zzyl.nursing.vo.FamilyMemberElderListVo;
import com.zzyl.nursing.vo.FamilyMemberElderVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface FamilyMemberElderMapper extends BaseMapper<FamilyMemberElder> {


    List<FamilyMemberElderVo> selectByFamilyMemberId(@Param("userId") Long userId);

    @Select("select * from family_member_elder")
    List<FamilyMemberElder> selectAll();

    List<FamilyMemberElderListVo> selectFamilyMemberElderList();
}
